<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<!--  <ui:include src="/public/menu.xhtml" /> -->	
	
	<h:form>
		<p:menubar>
			
			<p:submenu label="#{messages['menu.language']}">
				<p:menuitem value="#{messages['menu.menuitem.language-portuguese']}" action="#{locales.setPortuguese}" ajax="false"
					icon="br-flag-icon" />
				<p:menuitem value="#{messages['menu.menuitem.language-english']}" action="#{locales.setEnglish}" ajax="false"
					icon="us-flag-icon" />
			</p:submenu>
			
			<!-- rendered="#{securityContext.hasPermission('contact', 'view')}" -->
			<p:submenu label="#{messages['product.list.table.title']}">
				<p:menuitem value="Novo Produto" url="/auth/product_edit.jsf" />
				<p:menuitem value="Listar Produto" url="/auth/product_list.jsf" />				
			</p:submenu>
			
			<p:submenu label="#{messages['credictard.list.table.title']}">				
				<p:menuitem value="Novo Cartão" url="/auth/credict_card_edit.jsf" />
				<p:menuitem value="Listar Cartões" url="/auth/credict_card_list.jsf" />
			</p:submenu>
			
		</p:menubar>
		
	</h:form>
	
</ui:composition>